package com.qd.panda.mq.bo;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Data;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 和数据中台的数据对接
 * {
 * "parkingId": "ddd1c2c31a7e9fbbb8c6905215299e0a",
 * "plateNumber": "川A13YG4",
 * "inOutId": "202111260318595796F8106",
 * "inTime": "2021-11-26 03:18:59",
 * "outTime": null,
 * "type": "in"
 * }
 * @author sjk
 */
@Data
@Accessors(chain = true)
@ToString
@JsonIgnoreProperties(value = {"IN", "OUT"})
public class ParkBO {
    public static final String IN = "in";
    public static final String OUT = "out";
    private String parkingId;

    private String plateNumber;

    private String inOutId;

    private String inTime;

    private String outTime;

    private String type;
    /**
     * 1表示支持ETC
     */
    private Integer etc;

    public void freeData() {
        this.parkingId = null;
        this.plateNumber = null;
        this.inOutId = null;
        this.inTime = null;
        this.outTime = null;
        this.type = null;
        this.etc = null;
    }
}
